################################################################################
# File: manageWS.py
# Package: itacqos.uddi
# Author: Vincent Pretre
# Last update: $LastChangedDate: 2009-02-28 16:25:51 +0000 (Sat, 28 Feb 2009) $
################################################################################

## @package itacqos.uddi.urls
#
# URL dispatcher

from django.conf.urls.defaults import *

## The set of rules used to dispatch URL.
urlpatterns = patterns('itacqos.uddi.views',
    (r'^service/(?P<serviceId>\d+)/$', 'browse.showService'),
    (r'^serviceImg/(?P<serviceId>\d+)/$', 'browse.serviceImage'),
    (r'^vendor/(?P<vendorId>\d+)/$', 'browse.showVendor'),
    (r'^vendors/$', 'browse.showVendorsP1'),
    (r'^vendors/(?P<page>\d+)/$', 'browse.showVendorsList'),
    (r'^services/$', 'browse.showServicesP1'),
    (r'^services/(?P<page>\d+)/$', 'browse.showServicesList'),
    (r'^services/cat/(?P<category>.+)/(?P<page>\d+)/$', 'browse.showServicesListByCat'), 
    (r'^services/cat/(?P<category>.+)/$', 'browse.showServicesByCatP1'),
    (r'^services/keyword/(?P<keyword>.+)/(?P<page>\d+)/$', 'browse.showServicesListByKW'),
    (r'^services/keyword/(?P<keyword>.+)/$', 'browse.showServicesByKWP1'),
    (r'^search/$', 'browse.searchForm'),
    (r'^search/(?P<req>\w+)/$', 'browse.results'),
    (r'^help/$', 'browse.help'),
    (r'^login/$', 'user.signin'),
    (r'^logout/$', 'user.signout'),
    (r'^signup/$', 'user.signup'),
    (r'^controlPanel/$', 'controlPanel.controlPanelBase'),
    (r'^controlPanel/(?P<argument>.+)/$', 'controlPanel.controlPanel'),
    (r'^newService/$', 'manageWS.newService'),
    (r'^editService/(?P<serviceId>\d+)/$', 'manageWS.editService'),
    (r'^showService/(?P<serviceId>\d+)/$', 'manageWS.showService'),
    (r'^hideService/(?P<serviceId>\d+)/$', 'manageWS.hideService'),
    (r'^deleteService/(?P<serviceId>\d+)/$', 'manageWS.deleteService'),
    (r'^$', 'browse.main'),
)
